<template>
	<view class="content">
		<view class="boxContent" @tap="goUrl(1)" style="margin-top: 20rpx;">
			修改登录密码
			<image src="../../static/set/right.png" class="rightImg"></image>
		</view>
		<view class="boxContent" @tap="goUrl(2)">
			修改支付密码
			<image src="../../static/set/right.png" class="rightImg"></image>
		</view>
		<!-- <view class="loginOut" @tap="loginOut">安全退出</view> -->
	</view>
</template>

<script>
	import { logout } from '../../api/api.js'
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goUrl(type) {
				if( type == 1 ) {
					uni.navigateTo({
						url:'./modifyLoginPassword'
					})
				}else {
					uni.navigateTo({
						url:'./modifyTransactionPassword'
					})
				}
			},
			loginOut() {
				let data = {}
				logout(data).then( res=> {
					console.log(res,88)
					if( res.code == 200 ) {
						uni.clearStorageSync()
						uni.redirectTo({
							url:'../login/index'
						})
					}
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: rgba(246, 246, 247, 1);
	}
</style>
<style lang="less" scoped>
  .content {
		display: flex;
		flex-direction: column;
		align-items: center;
		.boxContent {
			width: 662rpx;
			height: 88rpx;
			background: #FFFFFF;
			box-shadow: 0px 8rpx r8px 0px rgba(255,255,255,0.25);
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0 20rpx 0 28rpx;
			font-family: DengXian, DengXian;
			font-weight: bold;
			font-size: 28rpx;
			color: #3C3C3C;
			.rightImg {
				width: 12rpx;
				height: 20rpx;
			}
		}
		.loginOut {
			margin-top: 667rpx;
			width: 670rpx;
			height: 88rpx;
			background: rgba(0, 196, 56, 1);
			border-radius: 45rpx;
			font-size: 28rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
		}
	}
</style>
